/* GTKCODE_COMMON_DECLARATION */
#ifndef __GTK_CODE_BASE_DEFINE_assistant1__
#define __GTK_CODE_BASE_DEFINE_assistant1__
/* GTKCODE_COMMON_DECLARATION */

#include <gtk/gtk.h>

#define GtkNotebookLabel GtkLabel
#define _T(aa) aa
const GdkColor* GET_GDK_COLOR(const gchar* spec)
{
    static GdkColor color;
    gdk_color_parse(spec, &color);
    return &color;
}

/* GTKCODE_BASE_CLASS_DEFINE_HEADER */
class UI_Cassistant1;

class Cassistant1 {
  private:
    UI_Cassistant1 *ui;
/* GTKCODE_BASE_CLASS_DEFINE_HEADER */

    /* GTKCODE_UI_WIDGET_SIGNAL_CONNECT */
  protected:
    /* GTKCODE_UI_WIDGET_SIGNAL_CONNECT */

    /* GTKCODE_UI_CHILD_WIDGET_SIGNAL_HANDLER_DEFINE_HEADER[on_button1_clicked] */
    static void _on_button1_clicked(GtkButton* button, Cassistant1* base)
    {
        base->on_button1_clicked(button, 0);
    };
    void on_button1_clicked(GtkButton* button, void* null_value);
    /* GTKCODE_UI_CHILD_WIDGET_SIGNAL_HANDLER_DEFINE_HEADER[on_button1_clicked] */

  public:
    /* GTKCODE_UI_WIDGET_CONSTRUCTOR_DEFINE */
    Cassistant1();
    UI_Cassistant1* get_ui() {return ui;};
    friend class UI_Cassistant1;
    /* GTKCODE_UI_WIDGET_CONSTRUCTOR_DEFINE */

/* GTKCODE_BASE_CLASS_DEFINE_TAIL */
};
/* GTKCODE_BASE_CLASS_DEFINE_TAIL */

/* GTKCODE_UI_CHILD_WIDGET_SIGNAL_HANDLER_DECLEARE_HEADER[on_button1_clicked] */
void Cassistant1:: on_button1_clicked(GtkButton* button, void* null_value)
{
/* GTKCODE_UI_CHILD_WIDGET_SIGNAL_HANDLER_DECLEARE_HEADER[on_button1_clicked] */

/* GTKCODE_UI_CHILD_WIDGET_SIGNAL_HANDLER_DECLEARE_TAIL[on_button1_clicked] */
    return;
}
/* GTKCODE_UI_CHILD_WIDGET_SIGNAL_HANDLER_DECLEARE_TAIL[on_button1_clicked] */



/* GTKCODE_UI_CLASS_DECLARATION */
class UI_Cassistant1 {
/* GTKCODE_UI_CLASS_DECLARATION */
  protected:
    /* GTKCODE_UI_WIDGET_VAR_DEFINE */
    GtkAssistant* assistant1;
    /* GTKCODE_UI_WIDGET_VAR_DEFINE */

    /* GTKCODE_UI_CHILD_WIDGET_VAR_DEFINE */
    GtkLabel* label1;
    GtkHBox* hbox1;
    GtkLabel* label2;
    GtkButton* button1;
    GtkLabel* label4;
    GtkLabel* label3;
    /* GTKCODE_UI_CHILD_WIDGET_VAR_DEFINE */

  public:
      /* GTKCODE_UI_CLASS_CONSTRUCTOR */
    UI_Cassistant1() : assistant1(0) {};
    GtkAssistant* native_handle(void) {return assistant1;};
      /* GTKCODE_UI_CLASS_CONSTRUCTOR */
      /* GTKCODE_BASE_CLASS_REFERENCE */
    GtkAssistant* setup_ui(Cassistant1* base)
      /* GTKCODE_BASE_CLASS_REFERENCE */
    {
        /* GTKCODE_UI_WIDGET_CONSTRUCT */
        assistant1 = (GtkAssistant*)gtk_assistant_new();
        /* GTKCODE_UI_WIDGET_CONSTRUCT */

        /* GTKCODE_UI_CHILD_WIDGET_CONSTRUCT */
        label1 = (GtkLabel*)gtk_label_new((const gchar*)(_T("介绍页")));
        gtk_widget_set_can_focus((GtkWidget*)(label1), (gboolean)(FALSE));
        gtk_widget_set_visible((GtkWidget*)(label1), (gboolean)(TRUE));
        gtk_assistant_append_page((GtkAssistant*)assistant1, (GtkWidget*)label1);
        gtk_assistant_set_page_type((GtkAssistant*)assistant1, (GtkWidget*)label1, (GtkAssistantPageType)GTK_ASSISTANT_PAGE_INTRO);

        hbox1 = (GtkHBox*)gtk_hbox_new((gboolean)(FALSE), (gint)(0));
        gtk_widget_set_can_focus((GtkWidget*)(hbox1), (gboolean)(FALSE));
        gtk_widget_set_visible((GtkWidget*)(hbox1), (gboolean)(TRUE));
        gtk_assistant_append_page((GtkAssistant*)assistant1, (GtkWidget*)hbox1);
        gtk_assistant_set_page_type((GtkAssistant*)assistant1, (GtkWidget*)hbox1, (GtkAssistantPageType)GTK_ASSISTANT_PAGE_CONTENT);

        label2 = (GtkLabel*)gtk_label_new((const gchar*)(_T("内容页")));
        gtk_widget_set_can_focus((GtkWidget*)(label2), (gboolean)(FALSE));
        gtk_widget_set_visible((GtkWidget*)(label2), (gboolean)(TRUE));
        gtk_box_pack_start((GtkBox*)hbox1, (GtkWidget*)label2, TRUE, TRUE, 0);

        button1 = (GtkButton*)gtk_button_new_with_label((const gchar*)(_T("button")));
        gtk_widget_set_can_focus((GtkWidget*)(button1), (gboolean)(TRUE));
        gtk_widget_set_receives_default((GtkWidget*)(button1), (gboolean)(TRUE));
        gtk_widget_set_visible((GtkWidget*)(button1), (gboolean)(TRUE));
        gtk_box_pack_start((GtkBox*)hbox1, (GtkWidget*)button1, TRUE, TRUE, 0);

        label4 = (GtkLabel*)gtk_label_new((const gchar*)(_T("label")));
        gtk_widget_set_can_focus((GtkWidget*)(label4), (gboolean)(FALSE));
        gtk_widget_set_visible((GtkWidget*)(label4), (gboolean)(TRUE));
        gtk_box_pack_start((GtkBox*)hbox1, (GtkWidget*)label4, TRUE, TRUE, 0);

        label3 = (GtkLabel*)gtk_label_new((const gchar*)(_T("确认页")));
        gtk_widget_set_can_focus((GtkWidget*)(label3), (gboolean)(FALSE));
        gtk_widget_set_visible((GtkWidget*)(label3), (gboolean)(TRUE));
        gtk_assistant_append_page((GtkAssistant*)assistant1, (GtkWidget*)label3);
        gtk_assistant_set_page_type((GtkAssistant*)assistant1, (GtkWidget*)label3, (GtkAssistantPageType)GTK_ASSISTANT_PAGE_CONFIRM);

        /* GTKCODE_UI_CHILD_WIDGET_CONSTRUCT */

        /* GTKCODE_UI_WIDGET_PROPERTY */
        gtk_widget_set_can_focus((GtkWidget*)(assistant1), (gboolean)(FALSE));
        gtk_container_set_border_width((GtkContainer*)(assistant1), (guint)(12));
        /* GTKCODE_UI_WIDGET_PROPERTY */

        /* GTKCODE_UI_CHILD_WIDGET_SIGNAL_CONNECT */
        g_signal_connect(G_OBJECT(button1), "clicked", G_CALLBACK(&Cassistant1::_on_button1_clicked), base);
        /* GTKCODE_UI_CHILD_WIDGET_SIGNAL_CONNECT */

        /* GTKCODE_UI_WIDGET_SIGNAL_CONNECT */
        /* GTKCODE_UI_WIDGET_SIGNAL_CONNECT */

        return assistant1;
    };
};

/* GTKCODE_BASE_CLASS_CONSTRUCTOR_HEADER */
Cassistant1 :: Cassistant1() : ui(new UI_Cassistant1)
{
    GtkWidget* base = (GtkWidget*)(ui->setup_ui(this));
/* GTKCODE_BASE_CLASS_CONSTRUCTOR_HEADER */

/* GTKCODE_BASE_CLASS_CONSTRUCTOR_TAIL */
}
/* GTKCODE_BASE_CLASS_CONSTRUCTOR_TAIL */

int main(int argc, char **argv)
{
    gtk_init(&argc, &argv);

    Cassistant1* base_ptr = new Cassistant1();

    GtkWidget* base = (GtkWidget*)base_ptr->get_ui()->native_handle();
    gtk_widget_show (base);
    gtk_main ();
    delete base_ptr;
    return 0;
}

#endif
